<template>
	<view class="box screen-all flex">
		<head-navigation></head-navigation>
		<view class="flex-1 content-view flex">
			<scroll-view class="screen-all" scroll-y>
				<rich-text class="rich-text" :nodes="content"></rich-text>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: '',
			}
		},
		onLoad() {
			this.getInfo();
		},
		methods: {
			getInfo () {
				//api/user/agreement_info
				let params = {
					token: uni.getStorageSync("token"),
				}
				console.log(params);
				this.$request("api/user/agreement_info", params)
					.then(({ code, msg, data, time }) => {
						console.log(code, msg, data);
						if(code == 1){
							this.content = data;
						}else{
							
						}
					}).catch((e) => {
						console.log(e);
					});
			}
		}
	}
</script>

<style scoped lang="scss">
	.box {
		background-color: #010B24;
	}
	.content-view {
		width: 690rpx;
		margin: 10rpx 30rpx 50rpx;
		background-color: #FFF;
		border-radius: 12rpx;
		padding: 30rpx;
		overflow: hidden;
	}
	.rich-text {
		font-size: 28rpx;
		color: #2E2E2E;
	}
</style>
